package com.hispeed.management.service.impl;

import com.hispeed.management.domain.SysUserInfoVo;
import com.hispeed.management.mapper.SysUserInfoMapper;
import com.hispeed.management.service.ISysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 系统用户Service实现
 *
 * @author zhangzb
 * @create 2017-06-19 19:08
 **/
@Service
public class SysUserServiceImpl implements ISysUserService {

    @Autowired
    private SysUserInfoMapper sysUserInfoMapper;

    /**
     * 根据用户登录名获取用户信息
     *
     * @param loginName
     * @return
     */
    @Override
    public SysUserInfoVo getUserInfoByLoginName(String loginName) {
        return sysUserInfoMapper.getUserInfoByLoginName(loginName);
    }
}
